﻿using System.Drawing;
using System.Windows.Forms;

namespace Marmat.Forms.Views
{
    namespace Grid
    {
        public class RowClickEventArgs
        {
            internal DevExpress.XtraGrid.Views.Grid.RowClickEventArgs info;

            internal RowClickEventArgs(DevExpress.XtraGrid.Views.Grid.RowClickEventArgs info)
            {
                this.info = info;
            }

            public Point Location
            {
                get
                {
                    return this.info.Location;
                }
            }

            /// <summary>
            /// 获取曾按下的是哪个鼠标按钮。
            /// </summary>
            /// <returns>System.Windows.Forms.MouseButtons 值之一。</returns>
            public MouseButtons Button
            {
                get
                {
                    return this.info.Button;
                }
            }

            /// <summary>
            /// 获取当前行的行号。
            /// </summary>
            /// <returns></returns>
            public int RowHandle
            {
                get
                {
                    return this.info.RowHandle;
                }
            }
        }
    }
}